import { Module } from '@nestjs/common';
import { LabelsService } from './labels.service';
import { LabelsController } from './labels.controller';
import { ClientsModule, Transport } from '@nestjs/microservices';

@Module({
  imports: [
    ClientsModule.registerAsync([{
        name: 'STORE_SERVICE',
        useFactory: () => ({
            transport: Transport.TCP,
            options: {
                port: 9091,
                retryAttempts: 5,
                retryDelay: 3000
            }
        })
    }])
  ],
  controllers: [LabelsController],
  providers: [LabelsService],
})
export class LabelsModule {}
